package org.linlinjava.litemall.admin.vo.shop;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/20 17:50
 */
public class GloudWarehouseEditWarehouseVo {

    @NotNull(message = "云仓id不能为空")
    private Integer warehouseId;

    @NotNull(message = "商品id不能为空")
    private Integer commodityID;

    @Size(min = 1,message = "具体规格库存不能为空")
    private List<@Valid CloudSpecifications> specifications;

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getCommodityID() {
        return commodityID;
    }

    public void setCommodityID(Integer commodityID) {
        this.commodityID = commodityID;
    }

    public List<CloudSpecifications> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<CloudSpecifications> specifications) {
        this.specifications = specifications;
    }
}
